/*
 * Copyright (C) 2021 ShangHai Quicktron Intelligent Technology Co.,Ltd
 * All Rights Reserved.
 * 本软件为上海快仓智能科技开发研制。未经本公司正式书面同意，其他任何个人、团体
 * 不得使用、复制、修改或发布本软件.
 * 版权所有 翻版必究
 */

package com.kc.gb.device.service.support.dto;

import lombok.ToString;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 分播墙层
 */
@ToString
public class StationContainerSlotLayer implements Serializable {

    private static final long serialVersionUID = 1L;

    //行
    private int layer;

    private List<StationContainerSlot> slots;

    public int getLayer() {
        return layer;
    }

    public void setLayer(int layer) {
        this.layer = layer;
    }

    public void addSlot(StationContainerSlot slot) {
        this.getSlots().add(slot);
    }

    public List<StationContainerSlot> getSlots() {
        if (slots == null) {
            slots = new ArrayList<>();
        }
        return slots;
    }

    public void setSlots(List<StationContainerSlot> slots) {
        this.slots = slots;
    }
}
